# num = 1
# while num <= 100:
#     print("来财")
#     num += 1

# 设置计数器
# num = 0
# result = 0
# while num <=100:
#     result += num
#     num += 1
# print(f"0~100累加求和结果")

# 定义计数器
# num = 1
# while num <=5:
#     print(f"吃第{num}个苹果")
#     if num ==3:
#         print("吃饱了")
#         print("放坏了")
#         break
#     num += 1

# for i in range(0,10):
#     print("来财")

# 九九乘法表
# for i in range(1, 10):
#     for j in range(1, i + 1):
#         print(f"{j}×{i}={j*i}", end='\t')
#     print()

# result = 0
# for i in range(0,101,2):
#     result += i
#     print(result)

# result = 0
# for i in range(101):
#     if i % 2 == 0:
#         result += i
# print(result)
while True:
    username = input("请输入用户名：")
    if username == "exit":
        print("退出程序")
        break
    password = input("请输入密码：")
    if (username == "admin") and (password == "123456"):
        print("登录成功！")
        break
    else:
        print("用户名或密码错误，请重新输入")
